package com.example.security.exceptions;

import com.example.security.common.ResultCode;

/**
 * 自定义异常：用户不存在
 * <p>
 * Created by devinlee in 2022.09.09
 */
public class UserNotFoundException extends RuntimeException {

    public UserNotFoundException() {
        super(ResultCode.USER_NOT_FOUND.getMessage());
    }

    public UserNotFoundException(String message) {
        super(message);
    }

    public UserNotFoundException(String message, Throwable cause) {
        super(message, cause);
    }

    public UserNotFoundException(Throwable cause) {
        super(cause);
    }

    public UserNotFoundException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
